//
//  Logger.swift
//  Browser
//
//  Created by 鹏鹏 on 2021/7/3.
//

import Foundation

struct Logger {

    static func printLog<T>(_ message: T, file: String = #file, function: String = #function, line: Int = #line) {
            #if DEBUG
            //获取文件名
            let  fileName = (file as NSString).lastPathComponent
            //打印日志内容
            print("\(fileName):\(line) \(function) | \(message)" )
            #endif
    }

}
